package com.xs.ai.data;

public enum BookingClass {

    ECONOMY("经济舱"), PREMIUM_ECONOMY("保费经济"), BUSINESS("商务舱");
    private final String name;

    BookingClass(String name) {
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public static BookingClass forBookingClass(String name) {
        for (BookingClass bookingClass : BookingClass.values()) {
            if (bookingClass.getName().equals(name)) {
                return bookingClass;
            }
        }
        return null;
    }
}
